﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeptSelect.aspx.cs" Inherits="Hisun.View.DataExchange.DeptSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <base target="_self" />
</head>
<body>
    <form id="form1" runat="server">
     <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">选择列表</div></div>
    <div class ="CommonPage_Body">

    
        <table style="width:100%;">
            <tr>
                <td >
                    <asp:Label ID="Label1" runat="server" Text="查询字段："></asp:Label>
                    <asp:DropDownList ID="DropDownList_Field" runat="server" Height="24px" 
                        Width="85px">
                        <asp:ListItem Value="0">部门编码</asp:ListItem>
                        <asp:ListItem Value="1">部门名称</asp:ListItem>

                    </asp:DropDownList>
                    <asp:Label ID="Label2" runat="server" Text="查询条件："></asp:Label>
                    <asp:TextBox ID="TextBox_QueryValue" runat="server" Height="15px"></asp:TextBox>
                    <asp:Button ID="Button_Query" runat="server" onclick="MyClick" 
                        Text="查询" CommandArgument="first" Width="40px" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView_Product" runat="server"  SkinID ="GridView" AutoGenerateColumns="False" >
                        <Columns>
                            <asp:BoundField DataField="部门编码" HeaderText="部门编码" ReadOnly="True" 
                                SortExpression="部门编码" />
                            <asp:BoundField DataField="部门名称" HeaderText="部门名称" ReadOnly="True" 
                                SortExpression="部门名称" />
                             
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CausesValidation="False" 
                                        CommandArgument='<%# Eval("部门编码") %>' CommandName="Select" 
                                        oncommand="Button1_Command" Text="选择" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" 
                                    onclick="MyClick">&lt;&lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" 
                                    onclick="MyClick"> &lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" 
                                    onclick="MyClick">&gt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" 
                                    onclick="MyClick"> &gt;&gt;</asp:LinkButton>
                                <asp:Label ID="Label_Total" runat="server" Text="共："></asp:Label>
                                <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到"></asp:Label>
                                <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px"></asp:TextBox>
                                <asp:Label ID="Label11" runat="server" Text="页"></asp:Label>
                                <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" 
                                    ControlToValidate="TextBox_PageIndex" ErrorMessage="*" MaximumValue="10000" 
                                    MinimumValue="1" Type="Integer"></asp:RangeValidator>
                                <asp:Button ID="Button_PageGo" runat="server" CommandArgument="GotoPage" 
                                    onclick="MyClick" Text="GO" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" /></td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
